/*
 * Created on Oct 13, 2005 7:23:09 AM
 * 
 * $Id: ss1_demo_action.java,v 1.2 2005/10/16 14:15:07 olu Exp $
 *
 */
package tripleo.framework.svr.storage2;

import java.io.FileOutputStream;
import java.nio.ByteBuffer;

import tripleo.framework.io.MemoryReadableByteStream;
import tripleo.framework.io.ReadableByteStream;
import tripleo.fs.File;

class ss2_demo_action {
	
	private void demo_action(IStorageServer2 demo) throws ss_exception {
//		FileReader fr=new _1();
		String cap;
		long startIndex = 17L;
		
		try{
			final String S = "an extreme amount of ridiculous foolishness.";
			FileOutputStream c=new File("00").fos();
			c.write(S.getBytes());
			c.close();
			
		}catch(Exception e) {
			e.printStackTrace();
		}
		
		cap=demo.createFile("ignored", new File("00"));
		demo.deleteFile(cap);
		File X = demo.readFile(cap, startIndex);
//		X.fis().r
	}
	
	public static void main(String arg[]) throws ss_exception {
		IStorageServer2 ss = new ss2("/local/db/ss1.database/");
		(new ss2_demo_action()).demo_action(ss);
	}
}
